import { get_user_info } from './_get-user-info';

/**
 * 获取params
 * @param productid 项目productid
 * @param cacha 是否使用缓存
 * @example get_params(url, spaceid, productid, cacha);
 */
export default async function get_params(productid: string, cacha: boolean) {

	const user_info = await get_user_info(productid, cacha);
	if (user_info) {
		return user_info.params;
	} else {
		throw Error('Could not get user auth info');
	}
}
